<?php /* Smarty version 2.6.18, created on 2012-05-16 22:28:41
         compiled from ajax/account-basic-fullname.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'ajax/account-basic-fullname.tpl', 7, false),)), $this); ?>
<form method="post" id="frmFullName" name="frmFullName" action="<?php echo @HOST_VFRIEND; ?>
account/basicsave" enctype="multipart/form-data">
	<input type="hidden" name="phascode" id="phascode" value="" />
    <input type="hidden" name="ptsave" id="ptsave" value="<?php echo $this->_tpl_vars['intType']; ?>
" />
	<div class="editForm">
    	<div class="userInput">
        	<label>Họ:</label>
        	<input type="text" value="<?php if (isset ( $_SESSION['st_firstname'] )): ?><?php echo ((is_array($_tmp=$_SESSION['st_firstname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['objUser']->firstname)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>" id="pfirstname" name="pfirstname" maxlength="50" class="text clearIt" />	
        </div>
        <div class="userInput">
        	<label>Chữ lót &amp; tên:</label>
        	<input type="text" value="<?php if (isset ( $_SESSION['st_lastname'] )): ?><?php echo ((is_array($_tmp=$_SESSION['st_lastname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['objUser']->lastname)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>" id="plastname" name="plastname" maxlength="50" class="text clearIt" />	
        </div>
        <div class="userInput">
        	<input type="submit" value="Thay đổi" class="btn" />
            <input type="button" value="Hủy" class="btn" onclick="javascript:basicClose('<?php echo $this->_tpl_vars['strView']; ?>
','<?php echo $this->_tpl_vars['strEdit']; ?>
')" />
        </div>
    </div>
</form>
<?php echo '
<script type="text/javascript" language="javascript">
	$(document).ready(function(){
		$("#frmFullName").validate({				
			errorClass		: \'errorMessage\',
			errorElement	: \'span\',
			onfocusout		: false,
			onkeyup			: false,
			rules: {	
				pfirstname:{
					required	: true
				},
				plastname:{
					required	: true
				}
			},
			messages: {	
				pfirstname:{
					required	: firstname_required
				},
				plastname:{
					required	: lastname_required
				}
			},		
			errorPlacement: function(label, element) {			
				var id = element.attr(\'id\');			
				label.insertAfter($(\'#\' + id));			
			},
			submitHandler: function(form) {				
				form.submit();
			}
		});				
	});
</script>
'; ?>